package com.xjh.utils.beanutils.internal.reflect;

import com.xjh.utils.beanutils.BeanCopier;
import com.xjh.utils.beanutils.annotation.CopyFeature;
import com.xjh.utils.beanutils.internal.cache.BeanCopyPropertyItem;
import com.xjh.utils.beanutils.internal.factory.BeanCopierFactory;

import java.util.List;

/**
 * Bean反射复制工厂
 *
 * @company 湖南省安第斯信息科技有限公司, 版权所有
 * @author kevin
 * @date 2021/3/10
 */
public class ReflactBeanCopyFactory implements BeanCopierFactory {

	@Override
	public BeanCopier createBeanCopier(Class<?> sourceClass, Class<?> targetClass, List<BeanCopyPropertyItem> items, CopyFeature[] features) {
		return new ReflectBeanCopy(items, features);
	}

}
